﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Common;

namespace CashFlow.Web.Def
{
    public enum ERegisterResult
    {
        Success = 0,

        /// <summary>
        /// 手机号码已存在
        /// </summary>
        [MyEnumAttrAttribute("手机号码已存在")]
        RepeatPhone = 1,

        /// <summary>
        /// 推荐人邀请码不存在
        /// </summary>
        [MyEnumAttrAttribute("推荐人邀请码不存在")]
        InvaliInvitationCode = 2,

        /// <summary>
        /// 系统错误
        /// </summary>
        [MyEnumAttrAttribute("系统错误")]
        Fail = 999
    }

    public enum ELoginResult
    {
        Success = 0,

        [MyEnumAttrAttribute("手机号码不存在")]
        PhoneNotExist = 1,

        [MyEnumAttrAttribute("密码错误")]
        PwdError = 2,

        [MyEnumAttrAttribute("会员被禁用")]
        UserDisable = 3,

        [MyEnumAttrAttribute("系统错误")]
        Fail = 999
    }

    public enum EUserType
    {
        OrdinaryUser = 0,

        ShopManager = 1
    }

    public enum EAppointmentResult
    {
        Success = 0,

        [MyEnumAttrAttribute("预约时间错误！")]
        InvalidTime = 1,

        [MyEnumAttrAttribute("请不要重复预约！")]
        Repeat = 2,

        [MyEnumAttrAttribute("预约类型错误！")]
        InvalidType = 3,

        [MyEnumAttrAttribute("未知错误！")]
        Fail = 999
    }

    public enum EShopManagerLevel : int
    {
        [MyEnumAttr("初级店铺")]
        Junior = 1,

        [MyEnumAttr("中级店铺")]
        Intermediate = 2,

        [MyEnumAttr("高级店铺")]
        Senior = 3,

        [MyEnumAttr("旗舰店铺")]
        FlagShip = 4,

        [MyEnumAttr("直营店铺")]
        DirectSale = 5
    }

    public enum ECreateOrderResult : int
    {
        Success = 0,

        [MyEnumAttr("买家订单重复")]
        RepeatBuyer = 1,

        Other = 999
    }

    public enum EUpdateOrderResult : int
    {
        Success = 0,

        [MyEnumAttr("买家订单重复")]
        RepeatBuyer = 1,

        Other = 999
    }

    public enum EOrderState : int
    {
        [MyEnumAttr("未付款")]
        NotPaied = 0,

        [MyEnumAttr("已付款")]
        Paied = 1,

        [MyEnumAttr("已收款")]
        Recved = 2,

        [MyEnumAttr("已提货")]
        Fetch = 3
    }

    public enum EUpdateUserInfoResult : int
    {
        Success = 0,

        [MyEnumAttr("手机号码已存在！")]
        RepeatPhone = 1,

        Other = 999
    }

    public enum ENewShopResult : int
    {
        Success = 0,

        [MyEnumAttr("店长已存在！")]
        ExistShopManager = 1,

        [MyEnumAttr("店铺名称已存在！")]
        ExistShopName = 2,

        [MyEnumAttr("店铺编号已存在！")]
        ExistShopNo = 3,

        Other = 999
    }
}